package model

type OpenidMapping struct {
	Id     uint64 `json:"id,omitempty"`
	UserId int64  `json:"user_id,omitempty"`
	Openid string `json:"openid,omitempty"`
}

type OpenidMapping1 OpenidMapping
type OpenidMapping2 OpenidMapping
type OpenidMapping3 OpenidMapping
type OpenidMapping4 OpenidMapping
type OpenidMapping5 OpenidMapping
type OpenidMapping6 OpenidMapping
type OpenidMapping7 OpenidMapping
type OpenidMapping8 OpenidMapping
type OpenidMapping9 OpenidMapping
type OpenidMapping10 OpenidMapping

func (OpenidMapping1) TableName() string {
	return "openid_mapping1"
}
func (OpenidMapping2) TableName() string {
	return "openid_mapping2"
}
func (OpenidMapping3) TableName() string {
	return "openid_mapping3"
}
func (OpenidMapping4) TableName() string {
	return "openid_mapping4"
}
func (OpenidMapping5) TableName() string {
	return "openid_mapping5"
}
func (OpenidMapping6) TableName() string {
	return "openid_mapping6"
}
func (OpenidMapping7) TableName() string {
	return "openid_mapping7"
}
func (OpenidMapping8) TableName() string {
	return "openid_mapping8"
}
func (OpenidMapping9) TableName() string {
	return "openid_mapping9"
}
func (OpenidMapping10) TableName() string {
	return "openid_mapping10"
}

func (OpenidMapping) Table(n uint32) interface{} {
	switch n {
	case 1:
		var openidModel OpenidMapping1
		return openidModel
	case 2:
		var openidModel OpenidMapping2
		return openidModel
	case 3:
		var openidModel OpenidMapping3
		return openidModel
	case 4:
		var openidModel OpenidMapping4
		return openidModel
	case 5:
		var openidModel OpenidMapping5
		return openidModel
	case 6:
		var openidModel OpenidMapping6
		return openidModel
	case 7:
		var openidModel OpenidMapping7
		return openidModel
	case 8:
		var openidModel OpenidMapping8
		return openidModel
	case 9:
		var openidModel OpenidMapping9
		return openidModel
	case 10:
		var openidModel OpenidMapping10
		return openidModel
	}

	return nil
}
